package week06;

import java.util.Random;

public class GraphicProxy implements Element {
    private Element element;

    public GraphicProxy(Element element) {
        this.element = element;
    }
    @Override
    public void Draw() {

        Random rdn = new Random();
        if(rdn.nextInt(10)<5){
            element.Draw();
        }
        else{
            System.out.println("You get a Graphic with X!");
        }


    }

}
